package com.neuedu.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.dao.ClientDao;
import com.neuedu.dao.UserMessageDao;
import com.neuedu.model.Client;
import com.neuedu.model.Goods;
import com.neuedu.service.ClientService;

@Service
public class ClientServiceImpl implements ClientService {

	// 依赖注入
	@Autowired
	private ClientDao ClientDao;
	
	public void setClientDao(ClientDao ClientDao) {
		this.ClientDao = ClientDao;
	}
	
	@Override
	public int countClient() {
		return ClientDao.countClient();
	}

	@Override
	public List<Client> findAll(Map<String, Object> map) {
		return ClientDao.findAll(map);
	}

	@Override
	public int addClient(Client u) {
		return ClientDao.addClient(u);
	}

	@Override
	public int updateClient(Client u) {
		return ClientDao.updateClient(u);
	}

	@Override
	public int deleteClient(int id) {
		return ClientDao.deleteClient(id);
	}

	@Override
	public List<Client> findList() {
		// TODO Auto-generated method stub
		return ClientDao.findList();
	}

}
